using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._DataManagementTools._RelationshipClasses
{
    /// <summary>
    /// <para>Migrate Relationship Class</para>
    /// <para>Migrates an ObjectID-based relationship class to a GlobalID-based relationship class.</para>
    /// <para>将基于 ObjectID 的关系类迁移到基于 GlobalID 的关系类。</para>
    /// </summary>    
    [DisplayName("Migrate Relationship Class")]
    public class MigrateRelationshipClass : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public MigrateRelationshipClass()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_relationship_class">
        /// <para>Input Relationship Class</para>
        /// <para>ObjectID-based relationship class that will be migrated to a GlobalID-based relationship class. The origin and destination feature classes or tables must already have GlobalIDs.</para>
        /// <para>基于 ObjectID 的关系类，该类将迁移到基于 GlobalID 的关系类。源要素类和目标要素类或表必须已具有 GlobalID。</para>
        /// </param>
        public MigrateRelationshipClass(object _in_relationship_class)
        {
            this._in_relationship_class = _in_relationship_class;
        }
        public override string ToolboxName => "Data Management Tools";

        public override string ToolName => "Migrate Relationship Class";

        public override string CallName => "management.MigrateRelationshipClass";

        public override List<string> AcceptEnvironments => ["workspace"];

        public override object[] ParameterInfo => [_in_relationship_class, _out_relationship_class];

        /// <summary>
        /// <para>Input Relationship Class</para>
        /// <para>ObjectID-based relationship class that will be migrated to a GlobalID-based relationship class. The origin and destination feature classes or tables must already have GlobalIDs.</para>
        /// <para>基于 ObjectID 的关系类，该类将迁移到基于 GlobalID 的关系类。源要素类和目标要素类或表必须已具有 GlobalID。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Relationship Class")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_relationship_class { get; set; }


        /// <summary>
        /// <para>Migrated Relationship Class</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Migrated Relationship Class")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_relationship_class { get; set; }


        public MigrateRelationshipClass SetEnv(object workspace = null)
        {
            base.SetEnv(workspace: workspace);
            return this;
        }

    }

}